<?php if (!isset($_GET['s'])): ?>
    <?php if (!empty($postList)) : ?>
        <div class="mdui-typo mdui-card mdui-hoverable mdui-m-y-5" style="border-radius: 8px;">
            <div class="mdui-card-media mdui-card-content">
                <div class="mdui-card-primary-title mdui-text-truncate" style="text-align: center;">
                    <?php echo $siteTitle; ?>
                    <br><small><?php echo $siteDescription; ?></small>
                </div>
            </div>
        </div>
    <div class="mdui-center mdui-m-y-5">
        <div class="mdui-card mdui-hoverable mdui-card-content" style="border-radius: 8px">
            <ul class="mdui-list">
                <?php foreach ($postList as $post): ?>
                <a href="<?php echo $post['url']; ?>">
                    <li class="mdui-list-item mdui-ripple">
                    <div class="mdui-list-item-content">
                        <div class="mdui-list-item-title"><?php echo $post['title']; ?></div>
                            <div class="mdui-list-item-text mdui-list-item-one-line">
                                <span class="mdui-text-color-theme-text"><?php echo $postDescription; ?></span>
                            </div>
                        </div>
                    </li>
                    <div class="mdui-divider"></div>
                </a>
                <?php endforeach; ?>
            </ul>
        </div>
    </div>
    <?php endif; ?>
<?php endif; ?>